package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 设备对象 venue
 *
 * @author 石涛
 * @date 2023-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("场馆")
public class Venue extends BaseEntity {
    /**
     * 场馆id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "场馆id")
    private Long id;

    /**
     * 场馆名称
     */
    @Excel(name = "设备名称")
    @ApiModelProperty(value = "场馆名称")
    private String name;

    /**
     * 场馆编号
     */
    @Excel(name = "场馆编号")
    @ApiModelProperty(value = "场馆编号")
    private String code;

    /**
     * 场馆图片
     */
    @Excel(name = "场馆图片")
    @ApiModelProperty(value = "场馆图片")
    private String images;

    /**
     * 场馆logo
     */
    @Excel(name = "场馆logo")
    @ApiModelProperty(value = "场馆logo")
    private String logo;

    /**
     * 场馆联系方式
     */
    @Excel(name = "场馆联系方式")
    @ApiModelProperty(value = "场馆联系方式")
    private String telephone;

    /**
     * 场馆联系人
     */
    @Excel(name = "场馆联系人")
    @ApiModelProperty(value = "场馆联系人")
    private String contacts;

    /**
     * 场馆地址
     */
    @Excel(name = "场馆地址")
    @ApiModelProperty(value = "场馆地址")
    private String address;

    /**
     * 场馆图片
     */
    @Excel(name = "经度")
    @ApiModelProperty(value = "经度")
    private double longitude;

    /**
     * 场馆图片
     */
    @Excel(name = "维度")
    @ApiModelProperty(value = "维度")
    private double latitude;

    @Excel(name = "场馆状态", readConverterExp = "0=正常,1=停用")
    @ApiModelProperty(value = "场馆状态")
    private String status;
    /**
     * 更新者
     */
    @Getter
    private String createBy;

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 更新者
     */
    @Getter
    private String updateBy;

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
}
